#{extends "main.html" /}
#{set title:"TA014 TOP " + items.size() /}

<div class="col-md-6">
<p><a class="btn btn-success" href="@{SplitTemplate.edit()}" role="button">Create New Split Template</a></p>

#{form @controllers.SplitTemplate.index()}
<div class="form-row">
    <div class="form-group col">
        <label for="name">Template Name</label>
        <input type="text" class="form-control" id="name" name="name" value="${params.name}"/>
    </div>
    <div class="form-group col">
        <label for="aircraft">Aircraft</label>
        <input type="text" class="form-control" id="aircraft" name="aircraft" value="${params.aircraft}"/>
    </div>
    <div class="form-group col">
        <label for="type">Type</label>
        <input type="text" class="form-control" id="type" name="type" value="${params.type}"/>
    </div>

</div>
<p>
    <input type="submit" class="btn btn-primary" value="过滤" />
    <a class="btn btn-secondary" href="@{controllers.SplitTemplate.index(null, null, null, null, true)}" role="button">Show all</a>
</p>
#{/form}

<p></p>

#{ta014_table items:items/}

</div>